<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>分类信息修改</title>
	<link rel="icon" href="/Public/images/logo.ico">
	<link rel="stylesheet" href="/Public/css/categoryheader.css">
	<link rel="stylesheet" href="/Public/css/categoryUpdate.css">
</head>
<body>
<div class="header">
		<div class="container">
			<div class="header-l">
				<a href="#"><img src="/Public/images/logo2.png"></a>
			</div>
			<div class="header-r">
				<ul>
					<li><a href="#">消息</a></li>
				</ul>
				<div class="status">
					<a href="">登录</a>|<a href="">注册</a>
				</div>
			</div>
			<div class="clearfix"></div>
		</div>
	</div>
	<div class="functionlist">
		<div class="container">
			<div class="f-l">
				<h4>分类管理</h4>
				<ul>
					<li><a href="<?php echo U('categoryList');?>">所有分类</a></li>
					<li><a href="<?php echo U('addCategory');?>">添加分类</a></li>
					<li><a href="<?php echo U('categoryUpdateCenter');?>">修改分类信息</a></li>
					<li><a href="<?php echo U('downCategory');?>">下架分类</a></li>
				</ul>
				<h4>属性管理</h4>
				<ul>
					<li><a href="">所有属性</a></li>
					<li><a href="">添加属性</a></li>
					<li><a href="">修改属性信息</a></li>
				</ul>
				<h4>商品管理</h4>
				<ul>
					<li><a href="">商品列表</a></li>
					<li><a href="">添加商品</a></li>
					<li><a href="">修改商品信息</a></li>
					<li><a href="">下架商品</a></li>
					<li><a href="">商品属性管理</a></li>
				</ul>
			</div>
			<div class="f-r">
				<div class="f-r-h">
					分类信息修改
				</div>
				<form method="post">
						<div class="form-l">
							<label for="name">分类名称:</label>
							<label for="parent_id">父分类:</label>
							<label for="category_describe">分类描述:</label>
							<label for="sort">分类排序(首页分类的显示顺序):</label>
							<label for="active">是否上架(1上架):</label>
						</div>
						<div class="form-r">
							<input type="hidden" name="id"  value="<?php echo ($category["id"]); ?>">
							<input type="text" name="name" id="name" value="<?php echo ($category["name"]); ?>">
							<select name="parent_id" id="parent_id">
								<option value="0">顶级分类</option>
								<?php if(is_array($categorys)): $i = 0; $__LIST__ = $categorys;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["id"]); ?>" <?php if(($vo["id"]) == $category["parent_id"]): ?>selected<?php endif; ?>><?php echo ($vo["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
							</select>
							<input type="text" class="desc" name="category_describe" id="category_describe" value="<?php echo ($category["category_describe"]); ?>">
							<input type="number" class="sort" name="sort" id="sort" min="0" max="100" value="<?php echo ($category["sort"]); ?>">
							<select name="active" id="active">
								<option value="0" <?php if(($category["active"]) == "0"): ?>selected<?php endif; ?>>不上架</option>
								<option value="1" <?php if(($category["active"]) == "1"): ?>selected<?php endif; ?>>上架</option>
							</select>
							<input type="submit" name="sub" value="修改" onclick="return confirm('确认修改编号为<?php echo ($category["id"]); ?>的分类?');">
						</div>
						<div class="clearfix"></div>
					</form>
			</div>
			<div class="clearfix"></div>
		</div>
	</div>
	<!-- 分割线 -->
	<div class="cutline">
		<div class="container">
		</div>
	</div>
	<!--  footer -->
	<div class="footer">
		<div class="container">
			<p>Copyright © 2004-2017  yijia.com 版权所有  |  消费者维权热线：  经营证照</p>
		</div>
	</div>
</body>
</html>